package com.doctor.comm;

import com.doctor.ui.R;

import android.support.v4.app.FragmentTransaction;

public class FragmentHelper {

    //切换fragment动画
    public static final void setFragSwitchAnimation(FragmentTransaction transaction){
    	//必须在切换fragment之前设置动画
//    	transaction.setCustomAnimations(android.R.anim.slide_in_left,android.R.anim.slide_out_right,
//    			android.R.anim.slide_in_left,android.R.anim.slide_out_right);
    	
    	transaction.setCustomAnimations(R.anim.slide_in_right,R.anim.slide_out_left,
    			R.anim.slide_in_left,R.anim.slide_out_right);
    }
	
	
	
}
